package com.hawk.eye.server.domain.po;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hawk.eye.framework.core.domain.api.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @author salad
 * @date 2023-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hawk_eye_problem_record")
public class ProblemRecord extends CommonEntity {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private String traceId;

    /**
     *
     */
    private Long baseAlarmId;

    /**
     *
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String disposeUser;


    private String problemName;

    /**
     *
     */
    private String problemDesc;

    /**
     *
     */
    private String problemCause;

    /**
     *
     */
    private String resolveDesc;

    /**
     *
     */
    private String problemLevel;

    /**
     *
     */
    private String stackHash;

    /**
     *
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordTime;

    /**
     *
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private LocalDateTime resolveTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmTime;

    /**
     *
     */
    private String problemType;

    /**
     *
     */
    private Integer status;

    private Long serviceId;


}
